package abstractclass;

import java.io.File;
import java.io.IOException;

import freemarker.template.Configuration;
import freemarker.template.DefaultObjectWrapper;
import util.PathUitls;

public abstract class AbstractProcess implements IProcess{
	
	protected static final String prefix="${bean.";
	protected static final String suffix="}";
	protected static final String jspFilePrefix="/jsp/";
	protected static final String ftlFilePrefix="/templetes/";
	protected static final String ENTER = "\n";//换行
    protected static Configuration configuration = new Configuration();

    static{
   	 
	     try 
	     {
			configuration.setDirectoryForTemplateLoading(new File(PathUitls.getClasspath()));
			configuration.setObjectWrapper(new DefaultObjectWrapper());  
	        configuration.setDefaultEncoding("UTF-8");  
	        
	     } catch (IOException e) {
	    	 // TODO Auto-generated catch block
	    	 e.printStackTrace();
	     }  
       
    }
    
	public void processJsp(Object obj, String path, String tableCaption) {
		// TODO Auto-generated method stub
		
	}

	public void processJava(String packgerOutPath, String beanName, String path,Object object) {
		// TODO Auto-generated method stub
		
	}

       

}
